package com.yoso.shop.infrastructure.dao.cart;

import com.yoso.base.infrastructure.dao.BaseMapper;
import com.yoso.shop.domain.cart.CartEntity;
import com.yoso.shop.domain.cart.CartEntityExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface CartEntityMapper extends BaseMapper<CartEntity, CartEntityExample> {
    @Override
    long countByExample(CartEntityExample example);

    @Override
    int deleteByExample(CartEntityExample example);

    @Override
    int deleteByPrimaryKey(String id);

    @Override
    int insert(CartEntity record);

    @Override
    int insertSelective(CartEntity record);

    @Override
    List<CartEntity> selectByExample(CartEntityExample example);

    @Override
    CartEntity selectByPrimaryKey(String id);

    @Override
    int updateByExampleSelective(@Param("record") CartEntity record, @Param("example") CartEntityExample example);

    @Override
    int updateByExample(@Param("record") CartEntity record, @Param("example") CartEntityExample example);

    @Override
    int updateByPrimaryKeySelective(CartEntity record);

    @Override
    int updateByPrimaryKey(CartEntity record);
}